import { GET, POST,POSTJSON, PUT, DELETE,POSTFORM } from './index'

// 更新用户头像和昵称
const userInfoUpdate = params=>{
	const url = '/api/user/update'
	return new Promise (resolve => {
		POSTJSON(url,params).then(res=>{
			console.log(res)
			resolve(res)
		})
	})
}
module.exports = {
	userInfoUpdate}